package com.lyj.service.impl;

import com.lyj.mapper.JobMapper;
import com.lyj.pojo.Job;
import com.lyj.service.JobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class JobServiceImpl implements JobService {
    @Autowired
    private JobMapper jobMapper;

    @Override
    public List<Job> findAllJob(Job job) {

        return jobMapper.findAllJob(job);
    }

    @Override
    public Job findJobById(Integer id) {
        return jobMapper.findJobById(id);
    }

    @Override
    public void updateJobById(Job job) {
        jobMapper.updateJobById(job);
    }

    @Override
    public void deleteJobById(Integer id) {
        jobMapper.deleteJobById(id);
    }

    @Override
    public void addJob(Job job) {
        jobMapper.addJob(job);
    }
}
